<?php

class Api_Util_Log_Logger extends Api_Util_Abstract
{
    private $_logger;
    
    private static $_loggerInstance = null;
    
    public function __construct()
    {
        $this->_logger = Zend_Registry::get('Log');
    }
    
    public static function getInstance()
    {
        if (self::$_loggerInstance === null) {
            self::$_loggerInstance = new self();
        }
        return self::$_loggerInstance;
    }
    
    public function getLog()
    {
        return $this->_logger;
    }

    public static function emerg($message)
    {
        self::getInstance()->getLog()->emerg($message);
    }

    public static function alert($message)
    {
        self::getInstance()->getLog()->alert($message);
    }

    public static function crit($message)
    {
        self::getInstance()->getLog()->crit($message);
    }

    public static function err($message)
    {
        self::getInstance()->getLog()->err($message);
    }

    public static function warn($message)
    {
        self::getInstance()->getLog()->warn($message);
    }

    public static function notice($message)
    {
        self::getInstance()->getLog()->notice($message);
    }

    public static function info($message)
    {
        self::getInstance()->getLog()->info($message);
    }
    
    public static function debug($message)
    {
        self::getInstance()->getLog()->debug($message);
    }

}